package corp.edu.amadeus.utils.log;

import java.io.PrintWriter;
import java.io.StringWriter;
import org.apache.log4j.Logger;

public class LogTracer {

	public static void printStackTraceError(Exception e, Logger log) {
		StringWriter sW = new StringWriter();
		e.printStackTrace(new PrintWriter(sW));
		log.error(sW.toString());
	}
}
